
using Abp.Runtime.Validation;
using Yozeev.Dtos;
using Yozeev.BusinessLogic;
using System.Collections.Generic;
using Yozeev.Common;

namespace Yozeev.BusinessLogic.Dtos
{
    public class GetSchedulesInput : PagedSortedAndFilteredInputDto, IShouldNormalize
    {
        /// <summary>
        /// Boat.runStatus 行程状态，传"Running"，例:{field: "Boat.runStatus", method: "=", value: "Running", logic: "and"}.checkStartTime 开始检票时间例：{field: "checkStartTime", method: ">", value: "2020-03-13 10:16:12", logic: "and"}saleDate 售票时间例：{field: "saleDate", method: "<=", value: "2020-03-15 00:00:00", logic: "and"}
        /// </summary>
        public List<QueryData> queryData { get; set; }
        /// <summary>
        /// 票价是否启用,可以不传表示全查询
        /// </summary>
        public bool? IsEnabled { get; set; }
        /// <summary>
        /// 正常化排序使用
        /// </summary>
        public void Normalize()
        {
            if (string.IsNullOrEmpty(Sorting))
            {
                Sorting = "CreationTime Desc";
            }
        }
       

    }
}
